export default {
  /*改变一级导航选中项*/
  changeFirstNavSelected(state, keyValue) {
    state.firstNavSelectedKey = keyValue
    try {
      localStorage.setItem('firstNavSelectedKey', keyValue)

    } catch (e) {
    }
  },
  openClickSelected(state, keyValue) {
    state.openClickSelectedKey = keyValue
    try {
      localStorage.setItem('openClickSelectedKey', keyValue)
    } catch (e) {
    }
  },
  /*记录上个页面一级导航选中项*/
  changeLastFirst(state, keyValue) {
    state.lastFirstSelected = keyValue
  },
  showLoading(state) {
    state.loading = true
  },
  hideLoading(state) {
    state.loading = false
  }
}
